/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.report.accounting;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import src.Menu;
import src.MenuBean;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
@ManagedBean
@SessionScoped
public class AccReportBean implements Serializable{
    private List<Menu> availableMenu;
    private Menu SelectedReport;
    
    public AccReportBean() {
        MenuBean menuBean = new MenuBean();
        Map<String,Object> filters = new HashMap<>();
        filters.put("menuType", "report");
        filters.put("menuGroup", "ACCOUNTING");
        filters.put("hide", -1);
        
        availableMenu = menuBean.getMenuByType(filters);
    }

    public List<Menu> getAvailableMenu() {
        return availableMenu;
    }

    public Menu getSelectedReport() {
        return SelectedReport;
    }

    public void setSelectedReport(Menu SelectedReport) {
        this.SelectedReport = SelectedReport;
    }
    
    
    
}
